package com.resource.project.service.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.resource.project.entity.system.Hr;
import com.baomidou.mybatisplus.extension.service.IService;
import com.resource.project.entity.RespBean;
import com.resource.project.entity.system.UserDetail;
import com.resource.project.os.HrVo;
import com.resource.util.page.PageParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author resource
 * @since 2020-03-14
 */
public interface IHrService extends IService<Hr> {
    public RespBean hrReg(Hr hr);

    public RespBean updateHr(Hr hr);

    public int updateHrRoles(Long hrId, Long[] rids) ;

    public int deleteHr(Long hrId) ;

    public List<Hr> getAllHrExceptAdmin() ;
    public List<Hr> getAllHr() ;

    IPage<HrVo> page(PageParam pageParam, Hr hr);

    UserDetail loadUserByUsername(String s);

    boolean update(Long id, Boolean flag);

    RespBean userInfo();

    Hr getByAccount(String account);

    RespBean forgetPassword(String email);

    RespBean resetPassword(Hr hr);

}
